<template>
	<view class="Farm_agreement">
		<view class="Farm_agreement_title">
			《{{date.title}}》
		</view>
		<view class="Farm_agreement_content">
			<rich-text :nodes="date.content"></rich-text>
			<!-- <view>
				出租人∶智慧农场小程序(以下简称甲方)
			</view>
			<view>
				承租人:租赁人(以下简称乙方)
			</view>
			<view>
				为响应国家农村土地流转的号召，开发利用田地，发展农村经济。经甲乙双方协定，甲方同意将地段农田计面积亩，租赁给乙方开发经营。为保障甲乙双方的合法权益,协议如下:
			</view> -->
		</view>
	</view>
</template>

<script>
	import adopt_order from "@/api/livestockAdoption/adopt_order.js";
	export default {
	  data() {
	    return {
			agreement_id:0,
			date:{}
	    };
	  },
	  onLoad(t) {
		  this.agreement_id = t.agreement_id;
		  this.get_article_detail();
	  },
	  onshow(){
	  },
	  filters: {
	  },
	  methods: {
		  // 拿到协议详情
		  get_article_detail(){
			  adopt_order.article_detail({id:this.agreement_id}).then((res) => {
				  if(res.code == 0){
					  this.date = res.data;
				  }
			  })
		  }
	  },
	};
</script>

<style scoped>
	.Farm_agreement_content{
		width:95%;
		margin: auto;
		color: #6f6f6f;
		margin-bottom: 40rpx;
	}
	.Farm_agreement_title{
		width:95%;
		height: 80rpx;
		line-height: 80rpx;
		margin: auto;
		color: #000000;
	}
	.Farm_agreement {
		width: 100%;
		min-height: 100vh;
		background: #FFFFFF;
	}
</style>
